package com.ape.mapsa.produccion.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * The persistent class for the op_comment database table.
 * 
 */
@Entity
@Table(name="op_comment")
public class OpComment implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Long id;

	private String author;

	private String comment;

	@Temporal(TemporalType.TIMESTAMP)
	private Date time;

	private Integer type;

	//bi-directional many-to-one association to OrdenProduccion
	@ManyToOne
	@JoinColumn(name="orden_produccion")
	private OrdenProduccion ordenProduccionBean;

	public OpComment() {
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getAuthor() {
		return this.author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Date getTime() {
		return this.time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public OrdenProduccion getOrdenProduccionBean() {
		return this.ordenProduccionBean;
	}

	public void setOrdenProduccionBean(OrdenProduccion ordenProduccionBean) {
		this.ordenProduccionBean = ordenProduccionBean;
	}

}